package com.group9.service;


import com.group9.params.ElasticInfoQuery;
import com.group9.pojo.ElasticFruitInfo;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * Created by QZP on 2020/5/27.
 */
public interface ElasticFruitInfoService {


    void saveAllElasticInfo(List<ElasticFruitInfo> elasticFruitInfoList);

    Iterable<ElasticFruitInfo> getAll();

    //价格区间
    List<ElasticFruitInfo> findByFruitPriceBetween(double low,double up);

    //名称
    List<ElasticFruitInfo> findByFruitName(String fruitName);

    Page<ElasticFruitInfo> ikSearch(String field, String queryString);
    Page<ElasticFruitInfo> ikSearchByPage(ElasticInfoQuery elasticInfoQuery);

}
